{include file="header.tpl" title="Nostro"}
<form action="" method="post" target="_self" name="tongquat">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<input type="button" value="{$ten_trove}" onClick="history.back();" class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"></td>
<td align="right" nowrap="nowrap" colspan="3">
<select name="hanhdong" size="1" onChange="changevalue('hanhdong');">
 {foreach from=$chuyentrang1 key=k item=v}
      <option value="{$k}" {if $select_cbo_chuyentrang eq $k} selected="selected" {/if}>{$v}</option>
 	{/foreach}
</select>
<input name="action" type="submit" value="{$ten_thuc_hien}" class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"/></td>
</tr>
<tr>
<td colspan="4"><hr></td>
</tr>
  <tr>
    <td>{$lbl_rptid}</td>
    <td colspan="3"><span style="color:#FF0000">
	<select id="RPTID" name="RPTID" size="1">
	  <option value="">&nbsp;</option>
	{foreach from=$rptid key=k item=v}
      <option value="{$k}" {if $RPTID eq $k} selected="selected" {/if}>{$k} - {$v}</option>
 	{/foreach}
	</select>
    * </span></td>
  </tr>
  <tr>
    <td>{$lbl_seqno}</td>
    <td colspan="3">
	<select id="SEQNO" name="SEQNO" size="1" >
		{foreach from=$seqno key=k item=v}
      		<option value="{$k}" {if $SEQNO eq $k} selected="selected" {/if}>{$v}</option>
 		{/foreach}	
	</select></td>	
  </tr>
	<tr>
    <td nowrap="nowrap">{$lbl_colcode}</td>
    <td colspan="3"><span style="color:#FF0000">
		<input type="text" id="COLCODE" name="COLCODE" maxlength="10" size="20" value="{$COLCODE}"/>	* </span>    </td>
    </tr>
  <tr>
    <td nowrap="nowrap">{$lbl_vndesc}</td>
    <td colspan="3"><input id="VNDESC" name="VNDESC" type="text" value="{$VNDESC}" size="50" maxlength="50"/></td>	 
    </tr>  
	<tr>
		<td nowrap="nowrap">
			{$lbl_endesc}		</td>
		<td colspan="3">
			<input id="ENDESC" name="ENDESC" type="text" value="{$ENDESC}" size="50" maxlength="50"/>		</td>	
	</tr>
	<tr>
		<td nowrap="nowrap">
			{$lbl_enbl}		</td>
		<td colspan="3"><select id="ENBL" name="ENBL" size="1">
		  
		{foreach from=$enbl_rptcldef key=k item=v}
      		
		  <option value="{$k}" {if $enbl eq $k} selected="selected" {/if}>{$v}</option>
		  
 		{/foreach}	
		
		  </select>		</td>	
	</tr>
	<tr>
		<td nowrap="nowrap">
			{$lbl_coltype}		</td>
		<td colspan="3">
		<select id="COLTYPE" name="COLTYPE" size="1" onchange="type_change();">
			{foreach from=$ctrl_type key=k item=v}
     			 <option value="{$k}" {if $COLTYPE eq $k} selected="selected" {/if}>{$v}</option>
 			{/foreach}
		</select>		</td>	
	</tr>
	<tr>
		<td nowrap="nowrap">
			{$lbl_sqlstr}		</td>
		<td colspan="3">
			<input type="text" id="SQLSTR" name="SQLSTR" maxlength="200" size="50" value="{$SQLSTR}"/>		</td>	
	</tr>
    </tr>  
  <tr>
    <td>&nbsp;</td>
    <td colspan="3"><input name="TOTAL" id="TOTAL" type="hidden"/></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td colspan="3"><input type="button" name="themmoirptcoldef" id="themmoirptcoldef" value="{$ten_them_moi}"  class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'" onClick="addRow();">
      <input type="button" name="capnhatrptcoldef" id="capnhatrptcoldef" value="{$ten_cap_nhat}"  class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'" onClick="updateRow();" disabled="disabled" /></td>
    </tr>
<tr>
<td colspan="4">
<div align="center">
<div align="center" style="width:680px;height:300px;overflow:auto;border:1px solid #6B82AC;">
<table width="100%" border="0" cellpadding="0" cellspacing="1" id="tblSample">
  <thead>
  <tr>
    <th nowrap="nowrap">{$lbl_stt}</th>  
    <th nowrap="nowrap">{$lbl_seqno}</th>
    <th nowrap="nowrap">{$lbl_colcode}</th>
    <th nowrap="nowrap">{$lbl_vndesc}</th>
	<th nowrap="nowrap">{$lbl_endesc}</th>
	<th nowrap="nowrap">{$lbl_enbl}</th>
	<th nowrap="nowrap">{$lbl_coltype}</th>
	<th nowrap="nowrap">{$lbl_sqlstr}</th>
  </tr>
  </thead>
  <tbody></tbody>
</table>
{$tbldata}</div></div></td>
<tr>
<td colspan="4"><p>&nbsp;</p></td>
</tr>
<tr>
<td colspan="4" align="right">

<input type="submit" name="capnhat" value="{$ten_cap_nhat}"  class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"/></td>
</tr>
<tr>
<td colspan="4">
<hr></td>
</tr>

<tr>
<td>
<input type="button" value="{$ten_trove}" onClick="history.back();" class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"></td>
<td align="right" nowrap="nowrap" colspan="3">
<select name="hanhdong1" size="1" onChange="changevalue('hanhdong1');">
 {foreach from=$chuyentrang1 key=k item=v}
      <option value="{$k}" {if $select_cbo_chuyentrang eq $k} selected="selected" {/if}>{$v}</option>
 	{/foreach}
</select>
<input name="action" type="submit" value="{$ten_thuc_hien}" class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"/></td>
</tr>
</table>
</form>
{$javascriptsetstyle}
{include file="footer.tpl"}
